// 点击播放视频
let vid = document.querySelector('.vid');
let bf = document.querySelector('.播放');
bf.addEventListener('click',function () {
    vid.style.display = 'block'
})
// 搜索栏
let search = document.querySelector('.but');
let list = document.querySelector('.list')
search.addEventListener('focus',function (){
    list.style.display = 'block'
    this.classList.add('search')
    // search.style.backgroundColor = 'red'
})
search.addEventListener('blur',function () {
    list.style.display = 'none'
    this.classList.remove('search')
})
// xiaomi手机下拉栏
let k = document.querySelector('.four1');
let ul = document.querySelector('.xiaomi手机');
k.addEventListener('mouseenter',function () {
    ul.style.display = 'block'
    // ul.style.zIndex = '5'
})
k.addEventListener('mouseleave',function () {
    ul.style.display = 'none'
    // ul.style.zIndex = '-1'
})
// Redmi手机下拉栏
let k1 = document.querySelector('.four2');
let ul1 = document.querySelector('.Redmi手机');
k1.addEventListener('mouseenter',function () {
    ul1.style.display = 'block'
})
k1.addEventListener('mouseleave',function () {
    ul1.style.display = 'none'
})